<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.16"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>LibTools: CUdpClient类 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">LibTools
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.8.16 -->
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',false,false,'search.php','搜索');
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public 成员函数</a> &#124;
<a href="#pro-methods">Protected 成员函数</a> &#124;
<a href="#pro-static-methods">静态 Protected 成员函数</a> &#124;
<a href="#pri-methods">Private 成员函数</a> &#124;
<a href="#pri-attribs">Private 属性</a> &#124;
<a href="class_c_udp_client-members.html">所有成员列表</a>  </div>
  <div class="headertitle">
<div class="title">CUdpClient类 参考</div>  </div>
</div><!--header-->
<div class="contents">

<p>udp服务类，用于连接发送功能 固删除接收对端地址的读写函数，若要接收对端地址信息的读写需使用UdpServer类  
 <a href="class_c_udp_client.html#details">更多...</a></p>

<p><code>#include &lt;<a class="el" href="_udp_client_8h_source.html">UdpClient.h</a>&gt;</code></p>
<div class="dynheader">
类 CUdpClient 继承关系图:</div>
<div class="dyncontent">
 <div class="center">
  <img src="class_c_udp_client.png" usemap="#CUdpClient_map" alt=""/>
  <map id="CUdpClient_map" name="CUdpClient_map">
<area href="class_c_udp_base.html" alt="CUdpBase" shape="rect" coords="0,56,96,80"/>
<area href="class_c_basic_service.html" title="服务类 基类" alt="CBasicService" shape="rect" coords="0,0,96,24"/>
  </map>
</div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public 成员函数</h2></td></tr>
<tr class="memitem:a91f0018425e1ecb4c03ad408164c3ea7"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_udp_client.html#a91f0018425e1ecb4c03ad408164c3ea7">CUdpClient</a> (bool isWriteLog)</td></tr>
<tr class="separator:a91f0018425e1ecb4c03ad408164c3ea7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a86254296f26f5768dd3c4b8017450a64"><td class="memItemLeft" align="right" valign="top">virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_udp_client.html#a86254296f26f5768dd3c4b8017450a64">~CUdpClient</a> ()</td></tr>
<tr class="separator:a86254296f26f5768dd3c4b8017450a64"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aebf05411c8a2938f71b20faa002fbe2a"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="class_c_sock_error.html">CSockError</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_udp_client.html#aebf05411c8a2938f71b20faa002fbe2a">Init</a> (<a class="el" href="class_c_socket.html">CSocket</a> &amp;sock, bool isServer)</td></tr>
<tr class="memdesc:aebf05411c8a2938f71b20faa002fbe2a"><td class="mdescLeft">&#160;</td><td class="mdescRight">将sock与服务类绑定，一个socket只能绑定一个udp服务类  <a href="class_c_udp_client.html#aebf05411c8a2938f71b20faa002fbe2a">更多...</a><br /></td></tr>
<tr class="separator:aebf05411c8a2938f71b20faa002fbe2a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac80cab21b298c0b99e810fd19e06a42b"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_udp_client.html#ac80cab21b298c0b99e810fd19e06a42b">AsyncConnect</a> (<a class="el" href="class_c_udp_socket.html">CUdpSocket</a> &amp;sock, const <a class="el" href="class_shared_ptr.html">SharedPtr</a>&lt; <a class="el" href="class_handle_base.html">HandleBase</a> &gt; &amp;func, void *invoker=<a class="el" href="tools_8h.html#ab689500aaec0db066e3ac9483d3fe425">NullPtr</a>)</td></tr>
<tr class="memdesc:ac80cab21b298c0b99e810fd19e06a42b"><td class="mdescLeft">&#160;</td><td class="mdescRight">投递一个连接请求  <a href="class_c_udp_client.html#ac80cab21b298c0b99e810fd19e06a42b">更多...</a><br /></td></tr>
<tr class="separator:ac80cab21b298c0b99e810fd19e06a42b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a09c194e8776369953eb427572972df48"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_udp_client.html#a09c194e8776369953eb427572972df48">AsyncRead</a> (<a class="el" href="class_c_udp_socket.html">CUdpSocket</a> &amp;sock, const <a class="el" href="class_c_stream_iteator.html">CStreamIteator</a> &amp;buff, const <a class="el" href="class_shared_ptr.html">SharedPtr</a>&lt; <a class="el" href="class_handle_base.html">HandleBase</a> &gt; &amp;func, void *invoker=<a class="el" href="tools_8h.html#ab689500aaec0db066e3ac9483d3fe425">NullPtr</a>)</td></tr>
<tr class="memdesc:a09c194e8776369953eb427572972df48"><td class="mdescLeft">&#160;</td><td class="mdescRight">投递一个接收请求  <a href="class_c_udp_client.html#a09c194e8776369953eb427572972df48">更多...</a><br /></td></tr>
<tr class="separator:a09c194e8776369953eb427572972df48"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acbfb5c3d02d26c74940eb9c77a29fe48"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_udp_client.html#acbfb5c3d02d26c74940eb9c77a29fe48">AsyncSend</a> (<a class="el" href="class_c_udp_socket.html">CUdpSocket</a> &amp;sock, const <a class="el" href="class_c_stream_iteator.html">CStreamIteator</a> &amp;buff, const <a class="el" href="class_shared_ptr.html">SharedPtr</a>&lt; <a class="el" href="class_handle_base.html">HandleBase</a> &gt; &amp;func, void *invoker=<a class="el" href="tools_8h.html#ab689500aaec0db066e3ac9483d3fe425">NullPtr</a>)</td></tr>
<tr class="memdesc:acbfb5c3d02d26c74940eb9c77a29fe48"><td class="mdescLeft">&#160;</td><td class="mdescRight">投递一个写请求  <a href="class_c_udp_client.html#acbfb5c3d02d26c74940eb9c77a29fe48">更多...</a><br /></td></tr>
<tr class="separator:acbfb5c3d02d26c74940eb9c77a29fe48"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8cb56c4554afb0fd36e69c60a1e04933"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_udp_client.html#a8cb56c4554afb0fd36e69c60a1e04933">Post</a> (const <a class="el" href="class_shared_ptr.html">SharedPtr</a>&lt; <a class="el" href="class_handle_base.html">HandleBase</a> &gt; &amp;func, void *invoker=<a class="el" href="tools_8h.html#ab689500aaec0db066e3ac9483d3fe425">NullPtr</a>)</td></tr>
<tr class="memdesc:a8cb56c4554afb0fd36e69c60a1e04933"><td class="mdescLeft">&#160;</td><td class="mdescRight">投递一个中断请求  <a href="class_c_udp_client.html#a8cb56c4554afb0fd36e69c60a1e04933">更多...</a><br /></td></tr>
<tr class="separator:a8cb56c4554afb0fd36e69c60a1e04933"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9d65087deb9bfea428ff3bb615ce9954"><td class="memItemLeft" align="right" valign="top">virtual bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_udp_client.html#a9d65087deb9bfea428ff3bb615ce9954">Run</a> ()</td></tr>
<tr class="memdesc:a9d65087deb9bfea428ff3bb615ce9954"><td class="mdescLeft">&#160;</td><td class="mdescRight">运行服务  <a href="class_c_udp_client.html#a9d65087deb9bfea428ff3bb615ce9954">更多...</a><br /></td></tr>
<tr class="separator:a9d65087deb9bfea428ff3bb615ce9954"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a23979cafab8a95298ec8c248e62c426c"><td class="memItemLeft" align="right" valign="top">virtual bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_udp_client.html#a23979cafab8a95298ec8c248e62c426c">Run_One</a> ()</td></tr>
<tr class="memdesc:a23979cafab8a95298ec8c248e62c426c"><td class="mdescLeft">&#160;</td><td class="mdescRight">运行一次服务  <a href="class_c_udp_client.html#a23979cafab8a95298ec8c248e62c426c">更多...</a><br /></td></tr>
<tr class="separator:a23979cafab8a95298ec8c248e62c426c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa018e3d31a656f08527d151120c27794"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_udp_client.html#aa018e3d31a656f08527d151120c27794">NotifyStop</a> ()</td></tr>
<tr class="memdesc:aa018e3d31a656f08527d151120c27794"><td class="mdescLeft">&#160;</td><td class="mdescRight">通知服务停止  <a href="class_c_udp_client.html#aa018e3d31a656f08527d151120c27794">更多...</a><br /></td></tr>
<tr class="separator:aa018e3d31a656f08527d151120c27794"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae07f629e082ecacf27ff0c91fa808ea5"><td class="memItemLeft" align="right" valign="top">virtual bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_udp_client.html#ae07f629e082ecacf27ff0c91fa808ea5">IsStop</a> () const</td></tr>
<tr class="memdesc:ae07f629e082ecacf27ff0c91fa808ea5"><td class="mdescLeft">&#160;</td><td class="mdescRight">服务是否停止  <a href="class_c_udp_client.html#ae07f629e082ecacf27ff0c91fa808ea5">更多...</a><br /></td></tr>
<tr class="separator:ae07f629e082ecacf27ff0c91fa808ea5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa9ed7c2a6ef85dcbba25056ff6777363"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_udp_client.html#aa9ed7c2a6ef85dcbba25056ff6777363">WaitServerStop</a> ()</td></tr>
<tr class="memdesc:aa9ed7c2a6ef85dcbba25056ff6777363"><td class="mdescLeft">&#160;</td><td class="mdescRight">通知服务停止并等待  <a href="class_c_udp_client.html#aa9ed7c2a6ef85dcbba25056ff6777363">更多...</a><br /></td></tr>
<tr class="separator:aa9ed7c2a6ef85dcbba25056ff6777363"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab0da6a1f850abeb24aa3ef691a1dd8c1"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="class_c_io_port_service.html">CIoPortService</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_udp_client.html#ab0da6a1f850abeb24aa3ef691a1dd8c1">GetIoPortService</a> ()</td></tr>
<tr class="memdesc:ab0da6a1f850abeb24aa3ef691a1dd8c1"><td class="mdescLeft">&#160;</td><td class="mdescRight">获取底层服务类  <a href="class_c_udp_client.html#ab0da6a1f850abeb24aa3ef691a1dd8c1">更多...</a><br /></td></tr>
<tr class="separator:ab0da6a1f850abeb24aa3ef691a1dd8c1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_class_c_udp_base"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_class_c_udp_base')"><img src="closed.png" alt="-"/>&#160;Public 成员函数 继承自 <a class="el" href="class_c_udp_base.html">CUdpBase</a></td></tr>
<tr class="memitem:a5c7cde2ecd9ead7b5d0ad577163a6db1 inherit pub_methods_class_c_udp_base"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_udp_base.html#a5c7cde2ecd9ead7b5d0ad577163a6db1">CUdpBase</a> (bool isWriteLog)</td></tr>
<tr class="separator:a5c7cde2ecd9ead7b5d0ad577163a6db1 inherit pub_methods_class_c_udp_base"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac7c3795c134f83c50a95aa013875c2f3 inherit pub_methods_class_c_udp_base"><td class="memItemLeft" align="right" valign="top">virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_udp_base.html#ac7c3795c134f83c50a95aa013875c2f3">~CUdpBase</a> ()</td></tr>
<tr class="separator:ac7c3795c134f83c50a95aa013875c2f3 inherit pub_methods_class_c_udp_base"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_class_c_basic_service"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_class_c_basic_service')"><img src="closed.png" alt="-"/>&#160;Public 成员函数 继承自 <a class="el" href="class_c_basic_service.html">CBasicService</a></td></tr>
<tr class="memitem:a73a67d340b0d83df8c02834ec89edc2b inherit pub_methods_class_c_basic_service"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_basic_service.html#a73a67d340b0d83df8c02834ec89edc2b">CBasicService</a> ()</td></tr>
<tr class="memdesc:a73a67d340b0d83df8c02834ec89edc2b inherit pub_methods_class_c_basic_service"><td class="mdescLeft">&#160;</td><td class="mdescRight">构造一个服务基类对象  <a href="class_c_basic_service.html#a73a67d340b0d83df8c02834ec89edc2b">更多...</a><br /></td></tr>
<tr class="separator:a73a67d340b0d83df8c02834ec89edc2b inherit pub_methods_class_c_basic_service"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a772031ad3c140a387b8b1e4f7bc4bed5 inherit pub_methods_class_c_basic_service"><td class="memItemLeft" align="right" valign="top">virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_basic_service.html#a772031ad3c140a387b8b1e4f7bc4bed5">~CBasicService</a> ()</td></tr>
<tr class="memdesc:a772031ad3c140a387b8b1e4f7bc4bed5 inherit pub_methods_class_c_basic_service"><td class="mdescLeft">&#160;</td><td class="mdescRight">销毁一个服务基类对象  <a href="class_c_basic_service.html#a772031ad3c140a387b8b1e4f7bc4bed5">更多...</a><br /></td></tr>
<tr class="separator:a772031ad3c140a387b8b1e4f7bc4bed5 inherit pub_methods_class_c_basic_service"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-methods"></a>
Protected 成员函数</h2></td></tr>
<tr class="memitem:aada20aa84fdb5b7983b89fa4f18b63df"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_udp_client.html#aada20aa84fdb5b7983b89fa4f18b63df">DelTimer</a> (<a class="el" href="class_c_timer_base.html">CTimerBase</a> &amp;timer)</td></tr>
<tr class="separator:aada20aa84fdb5b7983b89fa4f18b63df"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a81bcb7d38ad17b9bc6ee13677ab7e287"><td class="memItemLeft" align="right" valign="top">virtual bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_udp_client.html#a81bcb7d38ad17b9bc6ee13677ab7e287">UpdateTimer</a> (<a class="el" href="class_c_timer_base.html">CTimerBase</a> &amp;timer)</td></tr>
<tr class="separator:a81bcb7d38ad17b9bc6ee13677ab7e287"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7fc951a885bc9d3aab6ecdf0d1aa9273"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_udp_client.html#a7fc951a885bc9d3aab6ecdf0d1aa9273">SetTimer</a> (<a class="el" href="class_c_timer_base.html">CTimerBase</a> &amp;timer)</td></tr>
<tr class="separator:a7fc951a885bc9d3aab6ecdf0d1aa9273"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-static-methods"></a>
静态 Protected 成员函数</h2></td></tr>
<tr class="memitem:a9497aeb014bc19986f70b27d1b2c11da"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="tools_8h.html#a798af1e30bc65f319c1a246cecf59e39">DWORD</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_udp_client.html#a9497aeb014bc19986f70b27d1b2c11da">IoCompleteFunc</a> (<a class="el" href="struct_o_v_e_r_l_a_p_p_e_d___e_x.html">OVERLAPPED_EX</a> *oved)</td></tr>
<tr class="separator:a9497aeb014bc19986f70b27d1b2c11da"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pri-methods"></a>
Private 成员函数</h2></td></tr>
<tr class="memitem:a211a08e1f67028a22a76d1c1c154cae2"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_udp_client.html#a211a08e1f67028a22a76d1c1c154cae2">delete_class_copy_operator</a> (<a class="el" href="class_c_udp_client.html">CUdpClient</a>)</td></tr>
<tr class="separator:a211a08e1f67028a22a76d1c1c154cae2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr><td colspan="2"><div class="groupHeader">删除的函数</div></td></tr>
<tr class="memitem:a96c10005edd6a1e8fe4a727fddd0d425"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_udp_client.html#a96c10005edd6a1e8fe4a727fddd0d425">AsyncRecvfrom</a> (<a class="el" href="class_c_udp_socket.html">CUdpSocket</a> &amp;sock, const <a class="el" href="class_c_stream_iteator.html">CStreamIteator</a> &amp;buff, <a class="el" href="class_c_sock_addr.html">CSockAddr</a> *addr, const <a class="el" href="class_shared_ptr.html">SharedPtr</a>&lt; <a class="el" href="class_handle_base.html">HandleBase</a> &gt; &amp;func, void *invoker)</td></tr>
<tr class="separator:a96c10005edd6a1e8fe4a727fddd0d425"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aecb1ef4ed9971bb418ae2e07f7852882"><td class="memItemLeft" align="right" valign="top">virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_udp_client.html#aecb1ef4ed9971bb418ae2e07f7852882">AsyncSendTo</a> (<a class="el" href="class_c_udp_socket.html">CUdpSocket</a> &amp;sock, const <a class="el" href="class_c_stream_iteator.html">CStreamIteator</a> &amp;buff, <a class="el" href="class_c_sock_addr.html">CSockAddr</a> *addr, const <a class="el" href="class_shared_ptr.html">SharedPtr</a>&lt; <a class="el" href="class_handle_base.html">HandleBase</a> &gt; &amp;func, void *invoker)</td></tr>
<tr class="separator:aecb1ef4ed9971bb418ae2e07f7852882"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pri-attribs"></a>
Private 属性</h2></td></tr>
<tr class="memitem:a17f6e1e30545661f67e6bc2628c884e9"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_shared_ptr.html">SharedPtr</a>&lt; <a class="el" href="class_c_io_port_service.html">CIoPortService</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_c_udp_client.html#a17f6e1e30545661f67e6bc2628c884e9">_service</a></td></tr>
<tr class="separator:a17f6e1e30545661f67e6bc2628c884e9"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><p>udp服务类，用于连接发送功能 固删除接收对端地址的读写函数，若要接收对端地址信息的读写需使用UdpServer类 </p>

<p class="definition">在文件 <a class="el" href="_udp_client_8h_source.html">UdpClient.h</a> 第 <a class="el" href="_udp_client_8h_source.html#l00014">14</a> 行定义.</p>
</div><h2 class="groupheader">构造及析构函数说明</h2>
<a id="a91f0018425e1ecb4c03ad408164c3ea7"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a91f0018425e1ecb4c03ad408164c3ea7">&#9670;&nbsp;</a></span>CUdpClient()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="tools_8h.html#a201ce692c9dca6599e5c12d00167419b">DEF_BEG_LIBTOOLS</a> CUdpClient::CUdpClient </td>
          <td>(</td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>isWriteLog</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="_udp_client_8cpp_source.html">UdpClient.cpp</a> 第 <a class="el" href="_udp_client_8cpp_source.html#l00014">14</a> 行定义.</p>

</div>
</div>
<a id="a86254296f26f5768dd3c4b8017450a64"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a86254296f26f5768dd3c4b8017450a64">&#9670;&nbsp;</a></span>~CUdpClient()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">CUdpClient::~CUdpClient </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="_udp_client_8cpp_source.html">UdpClient.cpp</a> 第 <a class="el" href="_udp_client_8cpp_source.html#l00025">25</a> 行定义.</p>

</div>
</div>
<h2 class="groupheader">成员函数说明</h2>
<a id="ac80cab21b298c0b99e810fd19e06a42b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac80cab21b298c0b99e810fd19e06a42b">&#9670;&nbsp;</a></span>AsyncConnect()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void CUdpClient::AsyncConnect </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_c_udp_socket.html">CUdpSocket</a> &amp;&#160;</td>
          <td class="paramname"><em>sock</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="class_shared_ptr.html">SharedPtr</a>&lt; <a class="el" href="class_handle_base.html">HandleBase</a> &gt; &amp;&#160;</td>
          <td class="paramname"><em>func</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">void *&#160;</td>
          <td class="paramname"><em>invoker</em> = <code><a class="el" href="tools_8h.html#ab689500aaec0db066e3ac9483d3fe425">NullPtr</a></code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>投递一个连接请求 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">sock</td><td>待连接的套接字 </td></tr>
    <tr><td class="paramname">func</td><td>完成回调函数 </td></tr>
    <tr><td class="paramname">invoker</td><td>上层用户数据 </td></tr>
  </table>
  </dd>
</dl>

<p>实现了 <a class="el" href="class_c_udp_base.html#a2c90c99cb091d60480807292b4b550ce">CUdpBase</a>.</p>

<p class="definition">在文件 <a class="el" href="_udp_client_8cpp_source.html">UdpClient.cpp</a> 第 <a class="el" href="_udp_client_8cpp_source.html#l00060">60</a> 行定义.</p>

</div>
</div>
<a id="a09c194e8776369953eb427572972df48"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a09c194e8776369953eb427572972df48">&#9670;&nbsp;</a></span>AsyncRead()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void CUdpClient::AsyncRead </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_c_udp_socket.html">CUdpSocket</a> &amp;&#160;</td>
          <td class="paramname"><em>sock</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="class_c_stream_iteator.html">CStreamIteator</a> &amp;&#160;</td>
          <td class="paramname"><em>buff</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="class_shared_ptr.html">SharedPtr</a>&lt; <a class="el" href="class_handle_base.html">HandleBase</a> &gt; &amp;&#160;</td>
          <td class="paramname"><em>func</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">void *&#160;</td>
          <td class="paramname"><em>invoker</em> = <code><a class="el" href="tools_8h.html#ab689500aaec0db066e3ac9483d3fe425">NullPtr</a></code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>投递一个接收请求 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">sock</td><td>已连接的套接字 </td></tr>
    <tr><td class="paramname">buff</td><td>接收缓冲 </td></tr>
    <tr><td class="paramname">func</td><td>完成函数指针 </td></tr>
    <tr><td class="paramname">invoker</td><td>上层用户数据 </td></tr>
  </table>
  </dd>
</dl>

<p>实现了 <a class="el" href="class_c_udp_base.html#a8ffbb760ed06200df0a7a1c2491e4f02">CUdpBase</a>.</p>

<p class="definition">在文件 <a class="el" href="_udp_client_8cpp_source.html">UdpClient.cpp</a> 第 <a class="el" href="_udp_client_8cpp_source.html#l00070">70</a> 行定义.</p>

</div>
</div>
<a id="a96c10005edd6a1e8fe4a727fddd0d425"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a96c10005edd6a1e8fe4a727fddd0d425">&#9670;&nbsp;</a></span>AsyncRecvfrom()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void CUdpClient::AsyncRecvfrom </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_c_udp_socket.html">CUdpSocket</a> &amp;&#160;</td>
          <td class="paramname"><em>sock</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="class_c_stream_iteator.html">CStreamIteator</a> &amp;&#160;</td>
          <td class="paramname"><em>buff</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="class_c_sock_addr.html">CSockAddr</a> *&#160;</td>
          <td class="paramname"><em>addr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="class_shared_ptr.html">SharedPtr</a>&lt; <a class="el" href="class_handle_base.html">HandleBase</a> &gt; &amp;&#160;</td>
          <td class="paramname"><em>func</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">void *&#160;</td>
          <td class="paramname"><em>invoker</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">private</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>实现了 <a class="el" href="class_c_udp_base.html#aeafb176079a0e2ef6201f38055e33872">CUdpBase</a>.</p>

<p class="definition">在文件 <a class="el" href="_udp_client_8h_source.html">UdpClient.h</a> 第 <a class="el" href="_udp_client_8h_source.html#l00021">21</a> 行定义.</p>

</div>
</div>
<a id="acbfb5c3d02d26c74940eb9c77a29fe48"></a>
<h2 class="memtitle"><span class="permalink"><a href="#acbfb5c3d02d26c74940eb9c77a29fe48">&#9670;&nbsp;</a></span>AsyncSend()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void CUdpClient::AsyncSend </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_c_udp_socket.html">CUdpSocket</a> &amp;&#160;</td>
          <td class="paramname"><em>sock</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="class_c_stream_iteator.html">CStreamIteator</a> &amp;&#160;</td>
          <td class="paramname"><em>buff</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="class_shared_ptr.html">SharedPtr</a>&lt; <a class="el" href="class_handle_base.html">HandleBase</a> &gt; &amp;&#160;</td>
          <td class="paramname"><em>func</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">void *&#160;</td>
          <td class="paramname"><em>invoker</em> = <code><a class="el" href="tools_8h.html#ab689500aaec0db066e3ac9483d3fe425">NullPtr</a></code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>投递一个写请求 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">sock</td><td>已连接的套接字 </td></tr>
    <tr><td class="paramname">buff</td><td>发送缓冲 </td></tr>
    <tr><td class="paramname">func</td><td>完成函数 </td></tr>
    <tr><td class="paramname">invoker</td><td>上层用户数据 </td></tr>
  </table>
  </dd>
</dl>

<p>实现了 <a class="el" href="class_c_udp_base.html#afaa45e06d21d0ef2c3cdb965b4a62466">CUdpBase</a>.</p>

<p class="definition">在文件 <a class="el" href="_udp_client_8cpp_source.html">UdpClient.cpp</a> 第 <a class="el" href="_udp_client_8cpp_source.html#l00080">80</a> 行定义.</p>

</div>
</div>
<a id="aecb1ef4ed9971bb418ae2e07f7852882"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aecb1ef4ed9971bb418ae2e07f7852882">&#9670;&nbsp;</a></span>AsyncSendTo()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">virtual void CUdpClient::AsyncSendTo </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_c_udp_socket.html">CUdpSocket</a> &amp;&#160;</td>
          <td class="paramname"><em>sock</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="class_c_stream_iteator.html">CStreamIteator</a> &amp;&#160;</td>
          <td class="paramname"><em>buff</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="class_c_sock_addr.html">CSockAddr</a> *&#160;</td>
          <td class="paramname"><em>addr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="class_shared_ptr.html">SharedPtr</a>&lt; <a class="el" href="class_handle_base.html">HandleBase</a> &gt; &amp;&#160;</td>
          <td class="paramname"><em>func</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">void *&#160;</td>
          <td class="paramname"><em>invoker</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">private</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>实现了 <a class="el" href="class_c_udp_base.html#ab4230b4e3f8b762451f49ec97efdc412">CUdpBase</a>.</p>

<p class="definition">在文件 <a class="el" href="_udp_client_8h_source.html">UdpClient.h</a> 第 <a class="el" href="_udp_client_8h_source.html#l00022">22</a> 行定义.</p>

</div>
</div>
<a id="a211a08e1f67028a22a76d1c1c154cae2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a211a08e1f67028a22a76d1c1c154cae2">&#9670;&nbsp;</a></span>delete_class_copy_operator()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">CUdpClient::delete_class_copy_operator </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_c_udp_client.html">CUdpClient</a>&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

</div>
</div>
<a id="aada20aa84fdb5b7983b89fa4f18b63df"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aada20aa84fdb5b7983b89fa4f18b63df">&#9670;&nbsp;</a></span>DelTimer()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void CUdpClient::DelTimer </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_c_timer_base.html">CTimerBase</a> &amp;&#160;</td>
          <td class="paramname"><em>timer</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>实现了 <a class="el" href="class_c_udp_base.html#a14a97c2f7a8c0b4421cf81503b071d31">CUdpBase</a>.</p>

<p class="definition">在文件 <a class="el" href="_udp_client_8cpp_source.html">UdpClient.cpp</a> 第 <a class="el" href="_udp_client_8cpp_source.html#l00141">141</a> 行定义.</p>

</div>
</div>
<a id="ab0da6a1f850abeb24aa3ef691a1dd8c1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab0da6a1f850abeb24aa3ef691a1dd8c1">&#9670;&nbsp;</a></span>GetIoPortService()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_c_io_port_service.html">CIoPortService</a> * CUdpClient::GetIoPortService </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>获取底层服务类 </p>

<p>实现了 <a class="el" href="class_c_udp_base.html#af6768c0abfb54cce387c6b353b5e9dd0">CUdpBase</a>.</p>

<p class="definition">在文件 <a class="el" href="_udp_client_8cpp_source.html">UdpClient.cpp</a> 第 <a class="el" href="_udp_client_8cpp_source.html#l00136">136</a> 行定义.</p>

</div>
</div>
<a id="aebf05411c8a2938f71b20faa002fbe2a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aebf05411c8a2938f71b20faa002fbe2a">&#9670;&nbsp;</a></span>Init()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_c_sock_error.html">CSockError</a> CUdpClient::Init </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_c_socket.html">CSocket</a> &amp;&#160;</td>
          <td class="paramname"><em>sock</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>isServer</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>将sock与服务类绑定，一个socket只能绑定一个udp服务类 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">sock</td><td>待绑定的套接字类 </td></tr>
    <tr><td class="paramname">isServer</td><td>初始化类型,必须为false </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>成功返回SUCC，失败返回相应的错误码 </dd></dl>
<dl class="section remark"><dt>备注</dt><dd>isServer必须为false </dd></dl>

<p>实现了 <a class="el" href="class_c_udp_base.html#a615adef818eec9c6465fe5c7ff68ea3d">CUdpBase</a>.</p>

<p class="definition">在文件 <a class="el" href="_udp_client_8cpp_source.html">UdpClient.cpp</a> 第 <a class="el" href="_udp_client_8cpp_source.html#l00030">30</a> 行定义.</p>

</div>
</div>
<a id="a9497aeb014bc19986f70b27d1b2c11da"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9497aeb014bc19986f70b27d1b2c11da">&#9670;&nbsp;</a></span>IoCompleteFunc()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="tools_8h.html#a798af1e30bc65f319c1a246cecf59e39">DWORD</a> CUdpClient::IoCompleteFunc </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_o_v_e_r_l_a_p_p_e_d___e_x.html">OVERLAPPED_EX</a> *&#160;</td>
          <td class="paramname"><em>oved</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="_udp_client_8cpp_source.html">UdpClient.cpp</a> 第 <a class="el" href="_udp_client_8cpp_source.html#l00170">170</a> 行定义.</p>

</div>
</div>
<a id="ae07f629e082ecacf27ff0c91fa808ea5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae07f629e082ecacf27ff0c91fa808ea5">&#9670;&nbsp;</a></span>IsStop()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool CUdpClient::IsStop </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>服务是否停止 </p>
<dl class="section return"><dt>返回</dt><dd>停止服务返回true,未停止返回false </dd></dl>

<p>实现了 <a class="el" href="class_c_udp_base.html#a1b617bf569035b349d5f9e3fa7c1062d">CUdpBase</a>.</p>

<p class="definition">在文件 <a class="el" href="_udp_client_8cpp_source.html">UdpClient.cpp</a> 第 <a class="el" href="_udp_client_8cpp_source.html#l00123">123</a> 行定义.</p>

</div>
</div>
<a id="aa018e3d31a656f08527d151120c27794"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa018e3d31a656f08527d151120c27794">&#9670;&nbsp;</a></span>NotifyStop()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void CUdpClient::NotifyStop </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>通知服务停止 </p>

<p>实现了 <a class="el" href="class_c_udp_base.html#a3278a0321a26d29983c080eebad9865e">CUdpBase</a>.</p>

<p class="definition">在文件 <a class="el" href="_udp_client_8cpp_source.html">UdpClient.cpp</a> 第 <a class="el" href="_udp_client_8cpp_source.html#l00118">118</a> 行定义.</p>

</div>
</div>
<a id="a8cb56c4554afb0fd36e69c60a1e04933"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8cb56c4554afb0fd36e69c60a1e04933">&#9670;&nbsp;</a></span>Post()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void CUdpClient::Post </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="class_shared_ptr.html">SharedPtr</a>&lt; <a class="el" href="class_handle_base.html">HandleBase</a> &gt; &amp;&#160;</td>
          <td class="paramname"><em>func</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">void *&#160;</td>
          <td class="paramname"><em>invoker</em> = <code><a class="el" href="tools_8h.html#ab689500aaec0db066e3ac9483d3fe425">NullPtr</a></code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>投递一个中断请求 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">func</td><td>完成回调处理函数 </td></tr>
    <tr><td class="paramname">invoker</td><td>上层用户数据 </td></tr>
  </table>
  </dd>
</dl>

<p>实现了 <a class="el" href="class_c_udp_base.html#a3a32f4a3d3c6dcf2e596167c0388b9e8">CUdpBase</a>.</p>

<p class="definition">在文件 <a class="el" href="_udp_client_8cpp_source.html">UdpClient.cpp</a> 第 <a class="el" href="_udp_client_8cpp_source.html#l00090">90</a> 行定义.</p>

</div>
</div>
<a id="a9d65087deb9bfea428ff3bb615ce9954"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9d65087deb9bfea428ff3bb615ce9954">&#9670;&nbsp;</a></span>Run()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool CUdpClient::Run </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>运行服务 </p>
<dl class="section return"><dt>返回</dt><dd>成功返回true,失败返回false </dd></dl>

<p>实现了 <a class="el" href="class_c_udp_base.html#ae9515a147896f2f4493407a03bb21c03">CUdpBase</a>.</p>

<p class="definition">在文件 <a class="el" href="_udp_client_8cpp_source.html">UdpClient.cpp</a> 第 <a class="el" href="_udp_client_8cpp_source.html#l00100">100</a> 行定义.</p>

</div>
</div>
<a id="a23979cafab8a95298ec8c248e62c426c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a23979cafab8a95298ec8c248e62c426c">&#9670;&nbsp;</a></span>Run_One()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool CUdpClient::Run_One </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>运行一次服务 </p>
<dl class="section return"><dt>返回</dt><dd>成功返回true，失败返回false </dd></dl>

<p>实现了 <a class="el" href="class_c_udp_base.html#abd8f00554bbd461ddc245a8dbc12342b">CUdpBase</a>.</p>

<p class="definition">在文件 <a class="el" href="_udp_client_8cpp_source.html">UdpClient.cpp</a> 第 <a class="el" href="_udp_client_8cpp_source.html#l00109">109</a> 行定义.</p>

</div>
</div>
<a id="a7fc951a885bc9d3aab6ecdf0d1aa9273"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7fc951a885bc9d3aab6ecdf0d1aa9273">&#9670;&nbsp;</a></span>SetTimer()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void CUdpClient::SetTimer </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_c_timer_base.html">CTimerBase</a> &amp;&#160;</td>
          <td class="paramname"><em>timer</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>实现了 <a class="el" href="class_c_udp_base.html#a2f978d31627d822f09a185a3f1be5b77">CUdpBase</a>.</p>

<p class="definition">在文件 <a class="el" href="_udp_client_8cpp_source.html">UdpClient.cpp</a> 第 <a class="el" href="_udp_client_8cpp_source.html#l00160">160</a> 行定义.</p>

</div>
</div>
<a id="a81bcb7d38ad17b9bc6ee13677ab7e287"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a81bcb7d38ad17b9bc6ee13677ab7e287">&#9670;&nbsp;</a></span>UpdateTimer()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool CUdpClient::UpdateTimer </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_c_timer_base.html">CTimerBase</a> &amp;&#160;</td>
          <td class="paramname"><em>timer</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>实现了 <a class="el" href="class_c_udp_base.html#a63759990d87d12f87c1950290b54e8ee">CUdpBase</a>.</p>

<p class="definition">在文件 <a class="el" href="_udp_client_8cpp_source.html">UdpClient.cpp</a> 第 <a class="el" href="_udp_client_8cpp_source.html#l00151">151</a> 行定义.</p>

</div>
</div>
<a id="aa9ed7c2a6ef85dcbba25056ff6777363"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa9ed7c2a6ef85dcbba25056ff6777363">&#9670;&nbsp;</a></span>WaitServerStop()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void CUdpClient::WaitServerStop </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>通知服务停止并等待 </p>

<p>实现了 <a class="el" href="class_c_udp_base.html#abc3649c6c9856818532e9c2b47b16381">CUdpBase</a>.</p>

<p class="definition">在文件 <a class="el" href="_udp_client_8cpp_source.html">UdpClient.cpp</a> 第 <a class="el" href="_udp_client_8cpp_source.html#l00129">129</a> 行定义.</p>

</div>
</div>
<h2 class="groupheader">类成员变量说明</h2>
<a id="a17f6e1e30545661f67e6bc2628c884e9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a17f6e1e30545661f67e6bc2628c884e9">&#9670;&nbsp;</a></span>_service</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_shared_ptr.html">SharedPtr</a>&lt;<a class="el" href="class_c_io_port_service.html">CIoPortService</a>&gt; CUdpClient::_service</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">private</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">在文件 <a class="el" href="_udp_client_8h_source.html">UdpClient.h</a> 第 <a class="el" href="_udp_client_8h_source.html#l00103">103</a> 行定义.</p>

</div>
</div>
<hr/>该类的文档由以下文件生成:<ul>
<li>H:/project/LibTools/src/socket/internal/<a class="el" href="_udp_client_8h_source.html">UdpClient.h</a></li>
<li>H:/project/LibTools/src/socket/internal/<a class="el" href="_udp_client_8cpp_source.html">UdpClient.cpp</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者 &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.16
</small></address>
</body>
</html>
